package org.alis.rpc.common.paap.constant;

/**
 * @author lc
 * @version v1.0.0
 * @date 2020/8/28 11:28
 * @className Constants.class
 */

public interface Constants {

    int N_CODE_YES = 1;

    Integer INITIAL_DELAY = 300;

    String DEFAULT_VALUE_KEY = "default";

    String PROPERTIES_KEY_PERIOD = "appconfig.period";

    Integer DEFAULT_PERIOD = 30;

    String PERIOD_USE_DEFAULT = "业务系统没有自定义同步缓存周期，使用默认同步周期(s)：" + String.valueOf(DEFAULT_PERIOD);

    String WRONG_PERIOD = "自定义同步周期格式错误（正确示例: appconfig.period=30）！SDK将使用默认值作为同步周期。";

    String FREQUENT_PERIOD = "自定义同步周期过短,不能少于30（正确示例: appconfig.period=30）！SDK将使用默认值作为同步周期。";

    String CHARSET_UTF_8 = "utf-8";

    String ALL_API = "/api/appconfig/configs/%s";

    String ALL_API_WITHSYSID = "/api/appconfig/configs/%s?sysids=%s";

    String INCREMENT_API = "/api/appconfig/configs/%s?updateTime=%s";

    String INCREMENT_SYS_API = "/api/appconfig/configs/%s?sysids=%s&updateTime=%s";

    String SINGLE_API = "/api/appconfig/configs/%s/config/%s?corp=%s";

    Integer REQUEST_TIMEOUT = 10000;

    String STARTUP_PARAM_CORP = "corp";

    String STARTUP_PARAM_APPCONFIG_SERVER_URL = "appconfigServerUrl";

    String STARTUP_PARAM_APPCONFIG_IDS = "appconfig.ids";

    Integer CONFIG_NOT_MAINTAINABLE = 2;

    String APPCONFIG_SDK_BEAN_PropertyPlaceholderConfigurer = "propertyConfigurer";

    String APPCONFIG_SDK_BEAN_Configurator = "appConfigConfigurator";
}
